from numpy import *

def readFile(fileName):
    a = []
    with open(fileName) as f:
        strlist = f.readlines()
        for s in strlist:
            s = s.strip()
            b = s.split()
            c = [int(b[0]), int(b[1]), int(b[2])]
            a.append(c)
    x = array(a)
    return x



if __name__ == "__main__":
    inputfile = 'ml-100k/u1.base'
    result = readFile(inputfile)
    print result
    print result.size
